package com.yc.damai.web.feign;

import com.yc.damai.entity.Orders;
import com.yc.damai.entity.Product;
import com.yc.damai.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("damai-order")
public interface IOrderAction {

    @RequestMapping("/damai/orders/createOrder")
    public Result createOrder( @RequestBody Orders orders);

    @RequestMapping("/damai/product/updateCount")
    Result updateCount(@RequestBody Orders orders);

    @RequestMapping("/damai/product/queryAll")
    List<Product> queryAllProduct();
}
